#ifndef OLED_TASK_H
#define OLED_TASK_H

#include <stdint.h>

typedef enum
{
	SHOW_MIN      = 0,
	SHOW_HOMEPAGE = 1,    //主界面
	SHOW_SELECT   = 2,    //功能选择
    SHOW_WIFI     = 3,    //wifi
    SHOW_SERVER   = 4,    //服务器
	SHOW_BLE      = 5,    //蓝牙
	SHOW_CTRL     = 6,    //控制//开关、定时
	SHOW_SETTING  = 7,    //设置//声音，led，
	SHOW_BACK     = 8,    //返回
	SHOW_MAX
	
}oled_task_show_num_e;	

typedef enum
{
    START  = 1,    //开始
    SELECT = 2,    //选择
    RUN    = 3,    //执行

} oled_task_data_e;

typedef struct 
{
    uint8_t show_num_last;
	uint8_t show_num;
	uint8_t show_update;
	
	int8_t show_homepage_state;

	int8_t show_select_num_last;
	int8_t show_select_num;
    int8_t show_select_state;
	
    int8_t show_wifi_num_last;
	int8_t show_wifi_num;
	int8_t show_wifi_state;

    int8_t show_server_num_last;
	int8_t show_server_num;
	int8_t show_server_state;

	int8_t show_ble_num_last;
	int8_t show_ble_num;
	int8_t show_ble_state;
	
	int8_t show_select_slave_num_last;
	int8_t show_select_slave_num;
	int8_t show_select_slave_state;
	int8_t show_select_slave_ok;

	int8_t show_ctrl_num_last;
	int8_t show_ctrl_num;
	int8_t show_ctrl_state;
	
	int8_t show_setting_num_last;
	int8_t show_setting_num;
	int8_t show_setting_state;

}show_data_t;


#endif
